Loading...
 

Code example: inheritance of variables

The following example

Module(Alpha) [ Var(x) ] Module(Beta) : Alpha [ Msg(FOO) FOO: 3 -> x ] Module(Gamma) : Alpha [ Msg(BAR) BAR: "abc" -> x ]

is semantically identical with

Module(Beta) [ Msg(FOO) Var(x) FOO: 3 -> x ] Module(Gamma) [ Msg(BAR) Var(x) BAR: "abc" -> x ]